<template>
  <div id="manger">
    <el-tabs v-model="activeName2" type="border-card" @tab-click="handleClick">
      <el-tab-pane label="客户信息" name="first">
        <Customer></Customer>
      </el-tab-pane>
        
      <el-tab-pane label="采集信息" name="second">
        <Gather></Gather>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Vue from "vue";
import Customer from "../components/Customer.vue";
import Gather from "../components/Gather.vue";
export default {
  data() {
    return {
      activeName2: "first",
      input: "",
      ammeterId: "",
      currentPage: "",
      electricity: "",
      code: "",
      
    };
  },
  components: {
    Customer,
    Gather
  },
  created() {},
  mounted() {},
  methods: {
    handleClick(tab, event) {
      console.log(tab);
    },
    search() {
      let txt = this.ele;
      console.log(txt);
      this.txt = txt
      // this.$router.go(0)
    },
  },
};
</script>

<style scoped lang="less">
#manger {
  .el-tabs__nav-wrap {
    background-color: #f3f3f3;
  }
  .el-button {
    background-color: #008ecb;
    color: #f3f3f3;
  }
  .block {
    position: absolute;
    right: 0;
  }
  .el-main #mager {
    height: 1000px;
  }
}
</style>
